package test;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class demomap {
public static void main(String [] map) {
	 test2() ;

}
public  static void test1() {
	Map<String ,String > mp=new TreeMap<>();
	mp.put("kduu", 	"ddd");
	mp.put("bduu", 	"ddd");
	mp.put("acuu", 	"ddd");
	mp.put("cdu23", 	"ddd");
	for(String a  :mp.keySet()) {
	System.out.println(a);
	}
}
public  static void test2() {
	Map<byte[] ,byte[] > mp=new HashMap<>();
	mp.put("kduu".getBytes(), 	"ddd".getBytes());
	mp.put("kd2uu".getBytes(), 	"dd2d".getBytes());
	mp.put("kd3uu".getBytes(), 	"dd3d".getBytes());
	//Map 是hashcode 方式 查找key的
	System.out.println(mp.get("kduu".getBytes()));
}
}
